import request from '@/utils/request'

// 查询煤层信息列表
export function listCoalSeam(query) {
  return request({
    url: '/dispatch/coalSeam/list',
    method: 'get',
    params: query
  })
}

// 查询煤层信息详细
export function getCoalSeam(coalSeamId) {
  return request({
    url: '/dispatch/coalSeam/' + coalSeamId,
    method: 'get'
  })
}

// 新增煤层信息
export function addCoalSeam(data) {
  return request({
    url: '/dispatch/coalSeam',
    method: 'post',
    data: data
  })
}

// 修改煤层信息
export function updateCoalSeam(data) {
  return request({
    url: '/dispatch/coalSeam',
    method: 'put',
    data: data
  })
}

// 删除煤层信息
export function delCoalSeam(coalSeamId) {
  return request({
    url: '/dispatch/coalSeam/' + coalSeamId,
    method: 'delete'
  })
}
